//#include "object.h"
//
//
//std::map<uint32_t, std::weak_ptr<IObject>> ObjectMgr::mapObject;
//uint32_t ObjectMgr::curid = 1;
//uint32_t ObjectMgr::Reg(std::shared_ptr<IObject> object, ObjectType type)
//{
//	auto id = ObjectMgr::curid++;
//	object->objectID = id;
//	object->type = type;
//	ObjectMgr::mapObject[id] = object;
//	return id;
//}
//void  ObjectMgr::UnReg(uint32_t id)
//{
//	ObjectMgr::mapObject.erase(ObjectMgr::mapObject.find(id));
//}
//std::shared_ptr<IObject> ObjectMgr::Get(uint32_t id)
//{
//	return ObjectMgr::mapObject[id].lock();
//};